Skip to main content

Maintenance Mode

Maintenance Mode

NOTE: Only is available on versions ≥ 2.0.0

To ensure the SDK works properly for the user experience when our services are under maintenance, we've implemented maintenance mode. When the integrator uses the SDK services and it's enabled, it will show a screen like the following:

maintenance_mode

You can disable this screen with the field meetingdoctors_show_maintenance_screen in your bools.xml (By default is true)

<bool name ="meetingdoctors_show_maintenance_screen">false</bool>

We have available a listener to know when the maintenance mode starts and ends:

    MeetingDoctorsClient.instance?.setMaintenanceListener(object : MaintenanceNotifier.MaintenanceListener {
override fun maintenanceStarted() {}

override fun maintenanceEnded() {}

})

In any case, you can know if the maintenance mode is enabled or not anytime with the exposed boolean MeetingDoctorsClient.instance?.isMaintenanceEnabled